import request from '@/utils/request'

// 创建运费模版
export function createLogisticsModul(data) {
  return request({
    url: '/qd/logistics-modul/create',
    method: 'post',
    data: data
  })
}

// 更新运费模版
export function updateLogisticsModul(data) {
  return request({
    url: '/qd/logistics-modul/update',
    method: 'put',
    data: data
  })
}

// 删除运费模版
export function deleteLogisticsModul(id) {
  return request({
    url: '/qd/logistics-modul/delete?id=' + id,
    method: 'delete'
  })
}

// 获得运费模版
export function getLogisticsModul(id) {
  return request({
    url: '/qd/logistics-modul/get?id=' + id,
    method: 'get'
  })
}

// 获得运费模版分页
export function getLogisticsModulPage(query) {
  return request({
    url: '/qd/logistics-modul/page',
    method: 'get',
    params: query
  })
}

// 导出运费模版 Excel
export function exportLogisticsModulExcel(query) {
  return request({
    url: '/qd/logistics-modul/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
